<%@page import="helpers.LanguageHelper"%>
<%@page import="java.util.Locale"%>
<%@page import="java.util.ResourceBundle"%>
<%@page import="helpers.UrlHelper"%>
<%@page import="models.Domain"%>
<%@page import="models.RecentSite"%>
<%@page import="java.util.ArrayList"%>
<%@page import="helpers.HeaderHelper"%>
<%
	HeaderHelper headerHelper = (HeaderHelper) request.getAttribute("headerHelper");
	String serverUrl = UrlHelper.getServerUrl(request).replace("http://", "").replace("www.", "");
	LanguageHelper translate = new LanguageHelper(request);
%>
<jsp:include page="/layouts/header.jsp">
    <jsp:param name="title" value="<%=headerHelper.getTitle()%>" />
    <jsp:param name="description" value="<%=headerHelper.getDescription()%>" />
    <jsp:param name="keywords" value="<%=headerHelper.getKeywords()%>" />
    <jsp:param name="ogite_name" value="<%=headerHelper.getOgite_name()%>" />
    <jsp:param name="ogtitle" value="<%=headerHelper.getOgtitle()%>" />
    <jsp:param name="ogurl" value="<%=headerHelper.getOgurl()%>" />
    <jsp:param name="ogimage" value="<%=headerHelper.getOgimage()%>" />
    <jsp:param name="ogescription" value="<%=headerHelper.getOgescription()%>" />
</jsp:include>
<script type="text/javascript" src="/js/homepage.js"></script>
		<!-- 2. content -->
		<div id="content">
			<!-- 3. block -->
			<div class="block">
				<h1><%=translate.getString("title_home") %>&nbsp;<%=serverUrl %>.</h1>
				<p><%=headerHelper.getDescription() %></p>
				<div class="info home">
					<div class="left">
						<div class="image">
							<script type="text/javascript"><!--
							google_ad_client = "ca-pub-1271973886625217";
							/* domainworlds 336x280 */
							google_ad_slot = "4751386823";
							google_ad_width = 336;
							google_ad_height = 280;
							//-->
							</script>
							<script type="text/javascript"
							src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
							</script>
						</div>
					</div>
					<div class="left frm">
						<div class="form-search">
							<h3><%=translate.getString("find") %></h3>
							<div class="text-search">
								<form action="/find" method="get">
									<input class="search" name="name" />
									<input class="button" type="submit" value=""/>
									<div class="clear"></div>
								</form>
							</div>
						</div>
						<div class="lst">
							<b><%=translate.getString("example") %></b>
							<ul>     
								<li><a href="/s/sener.es">sener.es</a></li>
								<li><a href="/s/webvision.es">webvision.es</a></li>
								<li><a href="/s/escollection.es">escollection.es</a></li>
								<li><a href="/s/sonar.es">sonar.es</a></li>
								<li><a href="/s/animegen.es">animegen.es</a></li>
							</ul>
						</div>
					</div>
					<div class="clear"></div>
				</div>
				
				<h2><%=translate.getString("feature_site") %></h2>
				<div class="list-info">
					<div class="info">
						<h3><%=translate.getString("feature_title1") %></h3>
						<p><%=translate.getString("feature_desc1") %></p>
					</div>
					<div class="info">
						<h3><%=translate.getString("feature_title2") %></h3>
						<p><%=translate.getString("feature_desc2") %></p>
					</div>
					<div class="info">
						<h3><%=translate.getString("feature_title3") %></h3>
						<p><%=translate.getString("feature_desc3") %></p>
					</div>
					<div class="info">
						<h3><a href="/m"><%=translate.getString("feature_title4") %></a></h3>
						<p><%=translate.getString("feature_desc4") %></p>
					</div>
					<div class="info">
						<h3><a href="/h"><%=translate.getString("feature_title5") %></a></h3>
						<p><%=translate.getString("feature_desc5") %></p>
					</div>
					<div class="info">
						<h3><%=translate.getString("feature_title6") %></h3>
						<p><%=translate.getString("feature_desc6") %><%=serverUrl %> ... </p>
					</div>
				</div>
			</div>
			<!-- 3. end block -->
			
			<!-- 3. site-info -->
			<div class="site-info">
				<!-- google adsense -->
				<script type="text/javascript"><!--
				google_ad_client = "ca-pub-1271973886625217";
				/* domainworlds 728x90 */
				google_ad_slot = "0571679791";
				google_ad_width = 728;
				google_ad_height = 90;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
				<!-- end google adsense -->
			</div>
			<!-- 3. end site-info -->
		</div>
		<!-- 2. end content -->
		
		<!-- 2. side -->
		<div id="side">
			<!-- 3. block -->
			<div class="block">
				<script type="text/javascript"><!--
				google_ad_client = "ca-pub-1271973886625217";
				/* domainworlds 300x250 */
				google_ad_slot = "8080276388";
				google_ad_width = 300;
				google_ad_height = 250;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
			</div>
			<!-- 3. end block -->
		
			<!-- 3. block -->
			<div class="block recent-update">
				<h3><%=translate.getString("recent_site_update") %></h3>
				<div class="lst">
					<ul>
					<%
						ArrayList<Domain> recentSiteUpdate = RecentSite.getRecentSiteUpdate();
						for (int i = 0; i < recentSiteUpdate.size(); i++) {
							if (i > 20) break;
					%>
						<li><a href="/s/<%=recentSiteUpdate.get(i).getName()%>"><%=recentSiteUpdate.get(i).getName()%></a></li>
					<%	} %>
					</ul>
					<a href="javascript:void(0)" class="view-all info-link"><%=translate.getString("viewall") %></a>
				</div>
			</div>
			<!-- 3. end block -->
			
			<!-- 3. block -->
			<div class="block recent-view">
				<h3><%=translate.getString("recent_site_view") %></h3>
				<div class="lst">
					<ul>
						<%
						ArrayList<String> recentSiteView = RecentSite.getRecentSiteView();
						for (int i = 0; i < recentSiteView.size(); i++) {
							if (i > 20) break;
					%>
						<li><a href="/s/<%=recentSiteView.get(i)%>"><%=recentSiteView.get(i)%></a></li>
					<%	} %>
					</ul>
					<a href="javascript:void(0)" class="view-all info-link"><%=translate.getString("viewall") %></a>
				</div>
			</div>
			<!-- 3. end block -->
		</div>
		<!-- 2. end side -->
		
		<div class="clear"></div>

<jsp:include page="/layouts/footer.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>